package com.gitee.feizns.domain;

import lombok.Data;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author feizns
 * @since 2019/7/7 0007
 */
@Data
public class CustomizeConfig {

    /**
     * 作者
     */
    private String author;

    /**
     * 日期
     */
    private String date = getDate();

    /**
     * 包
     */
    private String basePackage;

    /**
     * api前缀
     */
    private String apiPrefix = "/api/";

    /**
     * 控制器包
     */
    private String controllerPackage = "web.controller";

    /**
     * 实体类包
     */
    private String entityPackage = "domain.pojo";

    /**
     * Mapper
     */
    private String mapperPackage = "dao.mapper.commons";

    /**
     * 查询数据的业务包
     */
    private String selServicePackage = "service.sel";

    /**
     * 更新数据的业务包
     */
    private String updServicePackage = "service.upd";

    /**
     * 接收对象包
     */
    private String aoPackage = "domain.ao";

    /**
     * 响应对象包
     */
    private String voPackage = "domain.vo";

    public static String getCurrentDate() {
        return new SimpleDateFormat("yyyy-MM-dd").format(new Date());
    }

}
